package com.jt.com.jt.provider.service;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
@Slf4j
@Component
public class ResourceFallHandler {
    public static String call(Throwable ex){
        log.error("service exiption {}" ,ex.getMessage());
        return "业务错误，稍等片刻在访问";
    }
}
